class Rental < ActiveRecord::Base

def self.search(search)
  search_condition = "%" + search + "%"
  find(:all, :conditions => ['customer_id LIKE ? OR first_name LIKE ? OR last_name LIKE ? OR uniqueid LIKE ? OR model LIKE ? OR brand LIKE ? OR size LIKE ? OR category LIKE ?', search_condition, search_condition, search_condition, search_condition, search_condition, search_condition, search_condition, search_condition])
end

end

